
#The use of the clipboard is a three-step process:
#Open the Clipboard
#Set/Get the DataObject
#Close the Clipboard
def SetClipboardText(text):
    """Put text in the clipboard
        @param  text: string
    """
    data_o = wx.TextDataObject()
    data_o = SetText(text)
    if wx.TheClipboard.IsOpened() or wx.TheClipboard.Open():
		wx.TheClipboard.SetData(data_o)
		wx.TheClipboard.Close()
def GetClipboardText():
	"""Get text from the clipboard
	@terutn :string
	"""
	text_obj = wx.TextDataObject()
	rtext = ""
	if wx.TheClipboard.IsOpened() or wx.TheClipboard.Open():
		if wx.TheClipboard.GetData(text_obj):
			rtext = text_obj.GetText()
		wx.TheClipboard.Close()
	return rtext
	